home *** CD-ROM | disk | FTP | other *** search
- Path: cph-1.news.DK.net!dkuug!dknet!dkbbbs!ro
- From: ro@dkb.dk (ROLAND ERBS)
- Newsgroups: comp.lang.c
- Subject: Overlay Thunks
- Message-ID: <8BA43FF.10850003B1.uuout@dkb.dk>
- Date: Tue, 06 Feb 96 17:03:00 +0100
- Distribution: world
- Organization: Danish Key Board BBS - Copenhagen Denmark - +45 3325 5600
- Reply-To: ro@dkb.dk (ROLAND ERBS)
- X-Newsreader: PCBoard Version 15.22
- X-Mailer: PCBoard/UUOUT Version 1.20
-
- Hi,
-
- I have a problem concerning overlays with MicroSoft Visual C version 1.0.
-
- I have a mycode.c file which I compile using /NM MYSEG thus putting this
- module in MYSEG_TEXT segment. In the .def file I put this segment in an
- overlay. Linking with the other modules give a warning:
-
- "mycode.obj (mycode.c) : warning L4059: far reference to overlaid segment
- MYSEG_TEXT changed to OVERLAY_THUNK"
-
- Questions:
-
- The linker is warning me about a far reference from mycode.obj to
- MYSEG_TEXT ? If so why ? All code in mycode.obj is in the MYSEG_TEXT segment.
-
- I could have understood it if there had been two different segments
- involved in the mycode.obj but there is not.
-
- Any help will be greatly appreciated! Thanks!
-
- Roland
- ro@dkb.dk
-
- Please mail me directly as well as to this group.
-
-
- ___
- * UniQWK #5249* Sad, sad, sad but I'm gonna be fine
-